/*
 * Created on 24/ago/07
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package it.unibo.deis.lia.mmhc.util;

import java.io.*;

public class Channel implements Serializable {

	private static final long serialVersionUID = 1L;

	private Connector connector;
	private String channelLocalIPAddress;

	public Channel(Connector connector, String channelLocalIPAddress) {
		this.connector = connector;
		this.channelLocalIPAddress = channelLocalIPAddress;
	}

	public Connector getConnector() {
		return connector;
	}

	public String getChannelLocalIPAddress() {
		return channelLocalIPAddress;
	}

	public String toString() {
		return "channelLocalIPAddress=" + channelLocalIPAddress + " @ ( "
				+ connector + " )";
	}

	@Override
	public boolean equals(Object obj) {
		return channelLocalIPAddress
				.equals(((Channel) obj).channelLocalIPAddress);
	}
}
